package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 订单对象 p_order
 * 
 * @author ruoyi
 * @date 2024-01-28
 */
public class POrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增id */
    private Long id;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNo;

    /** 区域名称 */
    @Excel(name = "服务项目")
    private String serviceName;

    /** 用户描述 */
    @Excel(name = "用户描述")
    private String content;

    /** 商品数量 单位/个 */
    @Excel(name = "商品数量")
    private Integer orderNum;

    /** 修复类型，可以做分组 */
    @Excel(name = "修复类型")
    private String repairedType;

    /** 报价价格，单位元 */
    @Excel(name = "报价价格")
    private String repairedPrice;

    /** 学校id */
    private Long schoolId;

    /** 地址id */
    private Long addressId;

    /** 地址 学校名称 + 详细地址 */
    @Excel(name = "地址 学校名称 + 详细地址")
    private String address;

    /** 订单联系人 */
    @Excel(name = "订单联系人")
    private String phone;

    /** 用户id */
    private Long userId;

    /** 经销商id */
    private Long dealerId;

    /** 状态（0 初始化 1 预约待报价状态 2 已接单 3 已报价待处理状态 4 已报价待结算状态 5 完成了结算，已完成状态 -1 已关闭状态（后台手工）） */
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setOrderNum(Integer orderNum) 
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() 
    {
        return orderNum;
    }
    public void setRepairedType(String repairedType) 
    {
        this.repairedType = repairedType;
    }

    public String getRepairedType() 
    {
        return repairedType;
    }
    public void setRepairedPrice(String repairedPrice) 
    {
        this.repairedPrice = repairedPrice;
    }

    public String getRepairedPrice() 
    {
        return repairedPrice;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setAddressId(Long addressId) 
    {
        this.addressId = addressId;
    }

    public Long getAddressId() 
    {
        return addressId;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDealerId(Long dealerId) 
    {
        this.dealerId = dealerId;
    }

    public Long getDealerId() 
    {
        return dealerId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getServiceName() {
        return serviceName;
    }

    public void setServiceName(String serviceName) {
        this.serviceName = serviceName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderNo", getOrderNo())
            .append("serviceName", getServiceName())
            .append("content", getContent())
            .append("orderNum", getOrderNum())
            .append("repairedType", getRepairedType())
            .append("repairedPrice", getRepairedPrice())
            .append("schoolId", getSchoolId())
            .append("addressId", getAddressId())
            .append("address", getAddress())
            .append("phone", getPhone())
            .append("userId", getUserId())
            .append("dealerId", getDealerId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
